package com.study.base.io;

import java.io.File;

/**
 * @description: FileTest2 删除文件
 * @date: 2021/1/14 13:00
 * @author: hcm
 * @version: 1.0
 */
public class FileTest2 {
    public static void main(String[] args) {
        File file = new File("D:\\iotest.txt");
        boolean deleteFlag = file.delete();
        System.out.println(deleteFlag?"删除和成功":"删除失败");
    }
}
